package com.skin.admin.entity;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author skin
 * @since 2018-08-09
 */
public class Uploadfile extends Model<Uploadfile> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 原名
     */
    private String name;
    /**
     * 新生名字
     */
    private String newname;
    /**
     * 日期
     */
    private String time;
    /**
     * 上传者
     */
    private Integer userid;
    /**
     * 磁盘路径
     */
    private String path;

    /**
     * 项目读取路径
     */
    private String readpath;

    /**
     * 关联商品
     */
    private String goodsid;
    /**
     * 所属位置  1 缩略图 2展示图 3内容图
     */
    private int position;

    public String getReadpath() {
        return readpath;
    }

    public void setReadpath(String readpath) {
        this.readpath = readpath;
    }

    public int getPosition() {
        return position;
    }

    public void setPosition(int position) {
        this.position = position;
    }

    public String getGoodsid() {
        return goodsid;
    }

    public void setGoodsid(String goodsid) {
        this.goodsid = goodsid;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getNewname() {
        return newname;
    }

    public void setNewname(String newname) {
        this.newname = newname;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public Integer getUserid() {
        return userid;
    }

    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Uploadfile{" +
        "id=" + id +
        ", name=" + name +
        ", newname=" + newname +
        ", time=" + time +
        ", userid=" + userid +
        ", path=" + path +
        "}";
    }
}
